package org.nativejpa.datasource;

import org.nativejpa.parser.PersistenceUnit;

import javax.sql.DataSource;
import javax.transaction.TransactionManager;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 * @create 2009-3-19 10:56:42
 */
public abstract class DataSourceFactory {

    public abstract String getVendor();

    public abstract DataSource createDataSource(PersistenceUnit persistenceUnit, TransactionManager transactionManager);

    public abstract void shutdownDataSource(DataSource dataSource);
}
